from django.db import models


class TimeInfo(models.Model):
    """
    Add time fields to another models.
    """

    class Meta:
        verbose_name = "时间相关字段"
        abstract = True

    created_at = models.DateTimeField("创建时间", auto_now_add=True, db_index=True)
